#pragma once
#include<pthread.h>
#include"EventLoop.h"


struct WorkThread
{
    pthread_t threadId;
    char name[24];
    pthread_mutex_t mutex; // 互斥量
    pthread_cond_t cond; // 条件变量
    struct EventLoop* evloop;

};

//初始化 采用另外一种输入输出型
int WorkThreadInit(struct WorkThread *workthread, int index);

void workThreadRun(struct WorkThread *workthread);